﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using XmlSockets.Internal;

namespace LibXmlSocket_UnitTest
{
    class TestSendContent:IXmlSocketSendContent
    {
        internal byte[] _buffer;

        public TestSendContent(byte[] buffer,long postion)
        {
            _buffer = new byte[postion];
            Array.ConstrainedCopy(buffer, 0, _buffer, 0,(int) postion);
        }
        public byte[] Buffer
        {
            get { return _buffer; }
        }
    }
}
